package vn.edu.ptithcm.pim.service;

import java.util.List;

import vn.edu.ptithcm.pim.dao.PhaseDao;
import vn.edu.ptithcm.pim.dom.Phase;

public class PhaseService {
	private PhaseDao phaseDao;

	public PhaseDao getPhaseDao() {
		return phaseDao;
	}

	public void setPhaseDao(PhaseDao phaseDao) {
		this.phaseDao = phaseDao;
	}

	public void save(Phase phase) {
		phaseDao.save(phase);
	}

	public void saveOrUpdate(Phase phase) {
		phaseDao.saveOrUpdate(phase);
	}

	public void lock(Phase phase) {
		phaseDao.lock(phase);
	}

	public void delete(Phase phase) {
		phaseDao.delete(phase);
	}

	public Phase merge(Phase phase) {
		return phaseDao.merge(phase);
	}

	public Phase findById(java.lang.Long id) {
		return phaseDao.findById(id);
	}

	@SuppressWarnings("rawtypes")
	public List findByExample(Phase phase) {
		return phaseDao.findByExample(phase);
	}

	@SuppressWarnings("rawtypes")
	public List getAll() {
		return phaseDao.getAll();
	}
}
